package org.example.settings.service.impl;

import org.example.settings.domain.User;
import org.example.settings.mapper.UserMapper;
import org.example.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("userImpl")
public class UserImpl implements UserService {

    @Autowired
    private UserMapper mapper;

    @Override
    public List<User> findAll() {
        return mapper.findAll();
    }

    @Override
    public User findOne(Map<String, String> map) {
        return mapper.findOne(map);
    }
}
